<!DOCTYPE html>
<html>
<head>
<style>
body {
  border: 1px solid gray;
}
img {
  direction: rtl;
}
.statusbar {
  height: 26px;
  background: #eef;
}
#test1 {
  border: 1px solid red;
}
#test2 {
  border: 1px solid green;
}
</style>
</head>
<body onload="test1()">
<div>
 <div class="statusbar">
  <img src="bar" id="test2"><img src="foo" id="test1">
 </div>
</div>
